The Outbox class is derived from two base classes - display and object.
It is a kind of a text window for messages. Of course it is not a
fully-fledged text window. You hardly can use Outbox for editing files. But
it suits well for outputting text information for various purposes.
The more complete text window may be derived from Outbox and will be
included in the following versions of Virtual Panels.
* Background mode. It is a mode supported by Outbox printing method. If
the background mode is on then printing the new text over the old one
will purge away the latter. If it is off (transparent mode) then the
new text will be
printed over the old one without background. This mode works only if
the current mode of text justification is LEFT_TEXT. For other text
justifications background mode is always off.
Constructor:
Most of parameters of constructor are typical for Objects. About color
schemes see the corresponding subsection below.
Data members:
All are inherited from the object base class ( See sect. 4 ).
Methods:
Includes methods inherited from the object base class ( sect.4 )
Paints Outbox clears display, and resets current printing position (it
will be at the LEFT-TOP corner of display). Text justification will be
LEFT_TEXT.
Justifies text in the x-direction and performs Line Feed (LF). The
xtextjust may be LEFT_TEXT, CENTER_TEXT or RIGHT_TEXT.
Clears display, and resets the current printing position.
Moves the printing position to the column and row.
If row = -1 then the
printing position moves to the bottom of the display.
Gets the current printing position.
Changes current text foreground color to the newcolor.
Changes current highlight text color to the newHighLightcolor.
Switches background mode on or off.
Prints a string. String is highlighted if highlight = ON. Putn also
performs carriage return.
Send formatted output to Outbox. Behave exactly like printf, except
for they don't accept control characters. Text is highlighted if highlight
= ON. Printfn also performs carriage return.
Color schemes:
struct outboxcolors { COLORS title, text, hltext, // highlighted text paper; };
const outboxcolors obxcoldflt = { RED, WHITE, YELLOW, LIGHTGRAY }; // title text hltext paper
const plaquecolors errboxcolors = { RED, RED, LIGHTRED }; const outboxcolors errcolors = { WHITE, WHITE, YELLOW, RED };